package com.inforich.building.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.inforich.building.domain.RubbishType;
import com.inforich.common.core.domain.TreeSelect;
import java.util.List;
import java.util.Map;

/**
 * 垃圾类型Service接口
 *
 * @author hjm
 * @date 2022-10-29
 */
public interface IRubbishTypeService extends IService<RubbishType> {

  /**
   * 分页列表
   */
  Page<RubbishType> pageRubbishType(Page<RubbishType> page, Map<String, Object> map);

  /**
   * 列表
   */
  List<RubbishType> listRubbishType(Map<String, Object> map);

  /**
   * 树
   */
  List<TreeSelect> selectRubbishTypeTreeList(List<RubbishType> list);

  /**
   * 根据代码查询当前类型的子树
   */
  List<TreeSelect> selectRubbishTypeTreeListByCode(String code);
}
